import React, { useState,useEffect } from 'react';
import axios from '../global/axios';
import api from '../global/api';

const Footer = () => {
  const [ footer, setFooter ] = useState('');
  useEffect(()=>{
    const getFooter = async () => {
      const _footer = await axios.get(api.getRes,{params:{resName:'footer'}});
      setFooter(_footer.data.resContent);
    }      
    getFooter();
  },[]) 
  return(
    <div className="footer" dangerouslySetInnerHTML={{__html:footer}}>
    </div>
  )
}
export default Footer;
